package com.yxym.homework;

public class homework03 {
    public static void main(String[] args) {
       Animal cat = new Cat();
       Animal dog = new Dog();
       cat.shut();
       dog.shut();
    }
}

 abstract class Animal{
    public abstract void shut();
}
class Cat extends Animal{

    @Override
    public void shut() {
        System.out.println("喵喵会叫...");
    }
}
class Dog extends Animal{

    @Override
    public void shut() {
        System.out.println("狗狗会叫...");
    }
}